package com.kuhyygy.widget.autocomplate;

import com.kuhyygy.R;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.AutoCompleteTextView;

public class AutocomplateActivity extends Activity {
	
	private String[] names = new String[]{"Jack", "Jason", "你好的", "你好吗", "Ken", "Kenfen"};

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.autocomplate);
		AutoCompleteTextView atv = (AutoCompleteTextView) findViewById(R.id.testAuto);
		ArrayAdapter<String> list = new ArrayAdapter<String>(this, R.layout.list_item, names);
		atv.setAdapter(list);
	}
	
	

}
